import axios from "axios";

const baseURL = window.baseUrl;

const instance = axios.create({
  //   baseURL: "http://192.168.12.131:18080/netscreen/kcmim/",
  baseURL:
    process.env.NODE_ENV === "production"
      ? baseURL
      : "http://192.168.12.131:18080/netscreen/kcmim/",
  timeout: 6000,
});

export function getTopography() {
  return instance({
    url: "/getDeviceListState",
    method: "get",
  });
}
